<%@ page import="com.wanmait.recruitment.util.RelativeDateFormat" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page import="com.wanmait.recruitment.util.RelativeDateFormat" %>
<%@ page import="java.util.Date" %>
<%@ page import="com.wanmait.recruitment.pojo.Job" %>
<%@ page import="java.util.List" %>
<%String path = request.getContextPath();%>
<ul class="hot_pos reset">
<c:forEach items="${requestScope.jobs}" var="job" varStatus="stat">
  <%-- <% List<Job>jobs = (List<Job>) request.getAttribute("jobs");
        for (Job job:jobs)
        {
    %>--%>
    <li class="odd clearfix">

        <div class="hot_pos_l">
            <div class="mb10">
                <a href="/zhuang/job/jobDetail?jobId=${job.id}" title="前端开发" target="_blank">${job.name}</a>
                &nbsp;
                <span class="c9">[${job.city.cityName}]</span>
            </div>
            <span><em class="c7">月薪：</em>${job.money.range}</span>
            <span><em class="c7">经验：</em> ${job.exRequire.require}</span>
            <span><em class="c7">最低学历： </em>${job.degree.title}</span>
            <br />
            <span><em class="c7">职位诱惑：</em>${job.treatment}</span>
            <br />

            <span>
                ${job.time}
               <%-- <span><%=RelativeDateFormat.format(job.getInputTime())%></span>--%>
            </span>
        </div>
        <div class="hot_pos_r">
            <div class="apply">
            </div>
            <div class="mb10"><a href="<%=path%>/zhuang/company/myhome?id=${job.company.id}" title="紫色医疗" target="_blank">${job.company.companyName}</a></div>
            <span><em class="c7">领域： </em>${job.company.industry.industryName}</span>
            <span><em class="c7">创始人：</em> ${job.company.legalName}</span>
            <br />
            <span><em class="c7">阶段： </em>${job.company.stage.stageName}</span>
            <span><em class="c7">规模： </em>${job.company.scale.range}</span>
            <ul class="companyTags reset">
                <c:forEach items="${job.company.tags}" var="tag">
                    <li>${tag.tagName}</li>
                </c:forEach>
            </ul>
        </div>
    </li>
 <%--<%
        }
    %>--%>
</c:forEach>
</ul>
<div class="Pagination">

${requestScope.pageInfo.total}条
   ${requestScope.pageInfo.pages}页
    <a href="#" data-pagenum="1">首页 </a>

   <c:if test="${requestScope.pageInfo.pageNum gt 1}">
    <a href="#" data-pagenum="${requestScope.pageInfo.pageNum-1}">上一页</a>
    </c:if>


    <c:forEach begin="1" end="${requestScope.pageInfo.pages}" var="i">

    <a href="#" data-pagenum="${i}"
            <c:if test="${i eq requestScope.pageInfo.pageNum}"> class="current" </c:if>>${i}</a>
    </c:forEach>


    <c:if test="${requestScope.pageInfo.pageNum lt requestScope.pageInfo.pages}">
    <a href="#" data-pagenum="${requestScope.pageInfo.pageNum+1}">下一页</a>
    </c:if>
    <a href="#" data-pagenum="${requestScope.pageInfo.pages}">尾页 </a>
    ${requestScope.pageInfo.pageNum}/${requestScope.pageInfo.pages}页

